package com.zstk;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ZColin
 * //@MapperScan 将项目中对应的mapper类的路径加进来就可以了, 会扫描mapper注解
 * //@ServletComponentScan 扫描servlet组件
 * 需要在pom中设置jar的入口类位此类
 * @since 2019/8/1 9:54
 */
@SpringBootApplication
@ServletComponentScan
@EnableScheduling
@EnableTransactionManagement
@ComponentScan(basePackages = {"com.zstk.example","com.zstk.mongo","com.zstk.frame"})
public class ZApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZApplication.class, args);
    }
}
